var mongoose = require('mongoose');
module.exports = {
  qiniu: {
    ACCESS_KEY: '***********',
    SECRET_KEY: '*************',
    Bucket_Name: '*****',
    Port: "***",
    Domain: '*****'
  },
  connect:function(){
    mongoose.Promise = require('bluebird');
    mongoose.connect('mongodb://127.0.0.1/toupiao',{useMongoClient: true});
    
    var db = mongoose.connection;
    db.on('error', console.error.bind(console, 'connection error:'));
    db.once('open', function() {
      // we're connected!
        console.log('Succcess! mongodb');
        
    });
  }
};

